home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / checker2 < prev    next >
Text File  |  1995-11-08  |  2KB  |  78 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dan Farmer
  3. // Demonstrates one use of the powerful filter parameter for colors.
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9. #include "skies.inc"
  10.  
  11. camera {
  12.    location <-1.5, 30.0, -150.0>
  13.    direction <0.0, 0.0, 2.0>
  14.    up  <0.0, 1.0, 0.0>
  15.    right <1.33333, 0.0, 0.0>
  16.    look_at <0.0, 25.0, 35.0>
  17. }
  18.  
  19. light_source { <100.0, 100.0, -200.0> colour White }
  20.  
  21. /* Now draw the sky */
  22. sky_sphere { S_Cloud3 }
  23.  
  24. /* sphere { <0.0, 0.0, 0.0>, 200000.0
  25.  
  26.    finish {
  27.       ambient 1.0
  28.       diffuse 0.0
  29.    }
  30.    pigment {
  31.       bozo
  32.       turbulence 0.35
  33.       colour_map {
  34.          [0.0 0.5   colour red 0.5 green 0.6 blue 1.0
  35.                     colour red 0.6 green 0.5 blue 1.0]
  36.          [0.5 0.6   colour red 0.5 green 0.6 blue 1.0
  37.                     colour red 1.0 green 1.0 blue 1.0]
  38.          [0.6 1.001 colour red 1.0 green 1.0 blue 1.0
  39.                     colour red 0.5 green 0.5 blue 0.5]
  40.       }
  41.       quick_color SkyBlue
  42.       scale 100000.0
  43.    }
  44. }  */
  45.  
  46. plane { <0.0, 1.0, 0.0>, 0.0
  47.    pigment { NeonBlue }
  48.    finish {reflection 0.15}
  49. }
  50.  
  51. /*******************************************************************************/
  52. /*
  53.   This next object uses the filter parameter to make a sphere with
  54.   a "cutout" checker pattern.
  55.  
  56.   Don't limit this idea to checker patterns.  Try it with gradient and
  57.   bozo, for example. Or maybe marble with filter 1.0 for all but the
  58.   "veins".
  59.   Try a series of "nested" concentric spheres, all with the transparent
  60.   checker pattern as its surface, perhaps in different colors.
  61. */
  62.  
  63. sphere { <0.0, 25.0, 0.0>, 25.0
  64.    pigment {
  65.       checker colour YellowGreen colour Clear
  66.       quick_color White
  67.       scale <4.0, 50.0, 2.0>
  68.       rotate <90, 0.0, -90.0>
  69.    }
  70.    finish {
  71.       brilliance 8
  72.       phong 1
  73.       phong_size 100
  74.    }
  75.  
  76.    bounded_by { sphere { <0.0, 25.0, 0.0>, 25.2 } }
  77. }
  78.